<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
	<head>
		<link href="/static/favicon.ico" rel="shortcut icon" th:href="@{/static/favicon.ico}"/>
		<title>登录页面</title>
		<!-- Bootstrap core CSS -->
		<link href="/asserts/css/bootstrap.min.css" th:href="@{../asserts/css/bootstrap.min.css}" rel="stylesheet">
		<!-- Custom styles for this template -->
		<link href="/asserts/css/signin.css" th:href="@{../asserts/css/signin.css}" rel="stylesheet">
	</head>

	<body class="text-center">
		<form class="form-signin" th:action="@{login}" method="post" style="border: gray 1px solid">
			<img class="mb-4" src="../static/asserts/img/bootstrap-solid.svg" alt="" width="72" height="72">
			<h1 class="h3 mb-3 font-weight-normal" th:text="#{login.please}">Please sign in</h1>
			<p th:text="${msg}" style="color: red" th:if="${not #strings.isEmpty(msg)}" ></p>
			<label class="sr-only">Username</label>
			<input type="text" class="form-control" name="zh" th:placeholder="#{login.username}" required="" autofocus="">
			<label class="sr-only">Password</label>
			<input type="password" class="form-control"  name="pwd"  th:placeholder="#{login.password}" required="">
			<div class="checkbox mb-3">
				<label>
          <input type="checkbox"  name="remenber"/> [[#{login.remeberme}]]
        </label>
			</div>
			<button class="btn btn-lg btn-primary btn-block" type="submit" th:text="#{login.signin}">Sign in</button>
			<a class="btn btn-lg btn-primary btn-block" th:text="#{login.zc}" th:href="@{/toRegist}"> register</a>
			<a class="btn btn-sm btn-primary btn-block" th:href="@{/t2}" th:text="#{login.sy}">返回首页</a>
			<p class="mt-5 mb-3 text-muted">© 2019-2020</p>
			<a class="btn btn-sm" th:href="@{/index(l='zh_CN')}">中文</a>
			<a class="btn btn-sm" th:href="@{/index(l='en_US')}">English</a>
		</form>

	</body>

</html>